<?php //Util::registerScriptFile(Util::themeUrl().'/js/jquery-ui.min.js');?>
<?php Util::registerScriptFile(Util::themeUrl().'/js/custome.datepicker.js');?>
<?php $this->pageTitle = 'Cập nhật thông tin tài khoản';?>
<div class="heading">
    <h1 style="text-align: center;"><a class = "title-page"><?php echo $this->pageTitle;?></a></h1>
    <div class="controls">

    </div>
</div>
<div class="content">
	<div class="user-profile" style="">
		<div class="left-column form form-active-profile">
			<?php $form=$this->beginWidget('CActiveForm', array(
				'id'=>'member-form',
				'enableAjaxValidation'=>false,
				'htmlOptions' => array('enctype' => 'multipart/form-data')
			)); ?>

			<?php //echo $form->errorSummary($member); ?>
			<br/>
			<div class="row personal">
				<label for="Member_fullname">Thành viên</label>
				<span class="username"><?php echo Util::formatFullName(CHtml::encode($member->fullname))?></span>

				<label for="Member_cmnd">Số chứng minh nhân dân</label>
				<span class="username"><?php echo CHtml::encode($member->cmnd)?></span>

				<label for="Member_sex">Giới tính</label>
				<span class="username"><?php echo Util::itemAlias('Sex', $member->sex)?></span>
			</div>
			<div class="hr-style1" style="margin-top: 20px;margin-bottom: -10px;">&nbsp;</div>
			<!----------------Thông tin cá nhân----------------------------------------------------------------------------------->
		    <?php $this->beginWidget('ext.coolfieldset.JCollapsibleFieldset', array('legend'=>'Thông tin cá nhân')); ?>
				<div class="row">
					<?php echo $form->labelEx($member,'cmnd'); ?>
					<?php echo $form->textField($member,'cmnd'); ?>
					<?php echo $form->error($member,'cmnd'); ?>
				</div>
				<div class="row">
					<?php echo $form->labelEx($member,'birthday'); ?>
					<?php echo $form->textField($member,'birthday',array('class'=> 'picker-date')); ?>
					<?php echo $form->error($member,'birthday'); ?>
				</div>
				<div class="row">
					<?php echo $form->labelEx($member,'birthplace'); ?>
					<?php echo $form->textField($member,'birthplace',array('size'=>60,'maxlength'=>255)); ?>
					<?php echo $form->error($member,'birthplace'); ?>
				</div>
				<div class="row">
					<?php echo $form->labelEx($member,'phone'); ?>
						<?php echo $form->textField($member,'phone',array('size'=>20,'maxlength'=>20)); ?>
					<?php echo $form->error($member,'phone'); ?>
				</div>

				<div class="row">
					<?php echo $form->labelEx($member,'cellphone'); ?>
						<?php echo $form->textField($member,'cellphone',array('size'=>20,'maxlength'=>20)); ?>
					<?php echo $form->error($member,'cellphone'); ?>
				</div>
				<div class="row">
					<?php echo $form->labelEx($member,'email'); ?>
						<?php echo $form->textField($member,'email',array('size'=>60,'maxlength'=>128, 'class' => 'longtext')); ?>
					<?php echo $form->error($member,'email'); ?>
				</div>
				<div class="row">
					<?php echo $form->labelEx($member,'address'); ?>
					<?php echo $form->textField($member,'address',array('size'=>60,'maxlength'=>255, 'class' => 'longtext')); ?>
					<?php echo $form->error($member,'address'); ?>
				</div>
				<div class="row">
					<?php echo $form->labelEx($member,'contact_address'); ?>
						<?php echo $form->textField($member,'contact_address',array('size'=>60, 'maxlength'=>255, 'class' => 'longtext')); ?>
					<?php echo $form->error($member,'contact_address'); ?>
				</div>
			<?php //$this->endWidget(); ?>
			<hr style="border-bottom-style: dashed;margin: 25 50px">
<!----------------Hoạt động xã hội----------------------------------------------------------------------------------->
			<?php //$this->beginWidget('ext.coolfieldset.JCollapsibleFieldset', array('legend'=>'Hoạt động xã hội')); ?>
				<div class="row">
					<?php echo $form->labelEx($member,'social_position'); ?>
						<?php echo $form->textArea($member,'social_position',array('rows'=>6, 'cols'=>50, 'style' => 'width : 90%')); ?>
					<?php echo $form->error($member,'social_position'); ?>
				</div>

				<div class="row">
					<?php echo $form->labelEx($member,'social_activity'); ?>
						<?php echo $form->textArea($member,'social_activity',array('rows'=>6, 'cols'=>50, 'style' => 'width : 90%')); ?>
					<?php echo $form->error($member,'social_activity'); ?>
				</div>
			<?php $this->endWidget(); ?>

			<?php if (!$member->isNewRecord): ?>
		        <input type="hidden" name="update_id" value="<?php echo $member->user_id; ?>"/>
			<?php endif; ?>

			<table class="button-form" style="text-align: center;width: 100%">
				<tr>
					<td align="center">
						<div class="row buttons"><?php echo CHtml::submitButton('Hoàn tất', array('class' => 'controls btn')); ?></div>
					</td>
				</tr>
			</table>
		<?php $this->endWidget(); ?>
		</div>
	</div>
</div>

